package edu.sctu.zcy.month201506.day20150612;

/**
 * Created by user24 on 2015/6/12.
 */
public class ProgramEntry {


    //虚方法
    public static void main(String[] args) {

        Salary s = new Salary("张三", "四川", 3, 3600.00);
        Employee e = new Salary("李四", "浙江", 2, 2400.00);
        System.out.println("Call mailCheck using Salary reference --");
        s.mailCheck();
        System.out.println("\nCall mailCheck using Employee reference--");
        e.mailCheck();
    }
}
